{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "id": "c225378b",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'err_msg': 'invalid audio length', 'err_no': 3314, 'sn': ''}\n"
     ]
    }
   ],
   "source": [
    "import requests \n",
    "host = ' ttp://vop.baidu.com/server_api'\n",
    "#准备URL参数\n",
    "payload = {\n",
    "    'grant_type':'client_credentials',\n",
    "    'client_id':'AblvqrCFNWG0IcGTVZwkTYOi',\n",
    "    'client_secret':'e5MRWHNpOtoVicw1DrDjuTA3AGD2wB0V'\n",
    "}\n",
    "response = requests.get(host)\n",
    "if response:\n",
    "    print(response.json())"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.8"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
